package com.onepice.mlp.utils.enums;

import lombok.Getter;

/**
 * CodeType
 *
 * @author wangzhao
 * @version v1.1
 * @date 2021年7月14日
 */
public enum CodeType {
    SUCCESS(0, "SUCCESS"),
    FAIL(1, "FAIL"),
    USER_NOT_LOGIN(2, "USER_NOT_LOGIN"),
    NO_PRIVILEGE(3, "NO_PRIVILEGE");

    @Getter
    private final Integer value;

    @Getter
    private final String name;

    CodeType(Integer value, String name) {
        this.value = value;
        this.name = name;
    }
}
